<template>
<div>
    <div class="con-body">
        <div class="con-title">
            <p>餐餐香点餐</p>
        </div>
       <div class="contain">
            <scroll-view scroll-y="true">
                <view class="recommend_hot_box" v-for="(item, index) in hotList" :key="index">
                    <div class="chose-img">
                        <img src="/static/images/chose.png" alt="">
                    </div>
                    <div>
                        <img :src="item.src" class="recommend_hot_image" />
                    </div>
                    <div class="recommend-title">
                        <p>{{ item.title }}</p>
                        <div class="recommend-title-child">
                            <div>
                                <label>￥</label>
                            <label class="recommend-num"> {{ item.nprice }}</label>
                            </div>
                        </div>
                    </div>
                    <div class="recommend-img">
                        <img src="/static/images/red.png" alt="">
                    </div>
                    <span class="recommend-span">1</span>
                    <div class="recommend-img">
                        <img src="/static/images/add.png" alt="">
                    </div>
                </view>
            </scroll-view>
        </div>
    </div>
    <div class="footer">
        <div class="footer1">
            <div class="footer-img">
                <img src="/static/images/chose.png" alt="">
            </div>
            <label class="span1">全选</label>
        </div>
        <div>
            <span class="span2">共3件</span>
        </div>
        
        <div>
            <span class="span2">合计:</span>
            <span class="span4">￥</span>
            <span class="span5">10.73</span>
        </div>
        <div class="pay">
            立即支付
        </div>
    </div>
</div>
</template>

<script>
export default {
    data() {
        return {
            hotList: [
                {
                    src: '/static/images/fired-dish/fenzhengrou.jpg',
                    title: '看着就香粉蒸肉',
                    nprice: '4.9',
                    gprice: ''
                }, {
                    src: '/static/images/fired-dish/hongshaoqiezi.jpg',
                    title: '后厨特制红烧茄子',
                    nprice: '0.03',
                    gprice: '4'
                }, {
                    src: '/static/images/fired-dish/ganguoxia.jpg',
                    title: '味美汁足干锅虾',
                    nprice: '5.8',
                    gprice: ''
                },
            ]
        }
    },
    methods: {
        
    }
}
</script>

<style scoped>
.con-body {
    width: 100%;
    height: 100%;
    background: rgb(241, 238, 238);
}
.con-title {
    font-size: 16px;
    margin-left: 15px;
    padding-top: 5px;
    color: rgb(58, 54, 54);
}
.contain {
    width: 94%;
    margin: 10px 3% 150px 3%;
    background: #fff;
    border-radius: 10px;
}

/* 隐藏滚动条 */
::-webkit-scrollbar {
  width: 0;
  height: 0;
  color: transparent;
}

.recommend_hot_box {
  height: 90px;
  margin: 15px 0 0 10px;
  display: inline-block;
  border-bottom: 1px solid rgb(241, 234, 234);
  display: flex;
}

.recommend_hot_image {
  width: 110px;
  height: 75px;
}
.recommend_hot_box .recommend-title {
    padding-left: 10px;
}
.recommend_hot_box .recommend-title p {
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 110px;
}
.recommend-title .recommend-title-child {
    font-size: 12px;
    font-weight: 600;
    margin-top: 14px;
    color: rgb(250, 38, 23);
    display: flex;
}
.recommend-title-child .recommend-num {
    font-size: 18px;
    letter-spacing: 1px;
}
.recommend-title .recommend-add {
    font-size: 13px;
    color:rgb(110, 105, 104);
    font-weight: 500;
    text-decoration: line-through;
}
.chose-img {
    width: 25px;
    height: 25px;
    padding-top: 25px;
    margin-right: 10px;
}
.chose-img img {
    width: 100%;
    height: 100%;
}
.recommend-img {
    width: 25px;
    height: 25px;
    padding-top: 50px;
}
.recommend-img img {
    width: 100%;
    height: 100%;
}
.recommend-span {
    padding-top: 50px;
    margin: 0 5px 0 5px;
}

.footer {
    z-index: 999;
    height: 50px;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgb(189, 185, 185);
    left:0;
    bottom:0;
    position: fixed;
}
.footer1 {
    display: flex;
    margin-top: 5px;
}
.footer-img {
    width: 25px;
    height: 25px;
    margin-left: 5px;
}
.footer-img img {
    width: 100%;
    height: 100%;
}
.span1 {
    font-size: 14px;
    color: rgb(112, 106, 106);
    margin-top: 3px;
    margin-left: 5px;
}
.span2 {
    width: 2;
    font-size: 16px;
    color: rgb(37, 34, 34);
}
.span4 {
    font-size: 16px;
    color: rgb(224, 79, 79);
}
.span5 {
    font-size: 20px;
    color: rgb(233, 30, 30);
}
.pay {
    width: 90px;
    height: 35px;
    background: rgb(226, 41, 41);
    font-size: 17px;
    border-radius: 20px;
    text-align: center;
    line-height: 35px;
    letter-spacing: 2px;
    color: #fff;
}

</style>
